import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index/index.vue'
import product from '../views/product/product.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },
  {
    path: '/product',
    name: 'product',
    component: product
  },
  {
    path: '/details',
    name: 'details',
    component: () => import('../views/product/details.vue')
  },
  {
    path: '/transfer',
    name: 'transfer',
    component: () => import('../views/transfer/transfer.vue')
  },
  
]

const router = new VueRouter({
  routes
})

export default router
